home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / CPlusPlus / LinkSrcB.xh < prev    next >
Encoding:
Text File  |  1997-02-13  |  8.8 KB  |  358 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: LinkSrcB.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODBaseLinkSource_xh
  18. #define SOM_ODBaseLinkSource_xh
  19.  
  20. class ODBaseLinkSource;
  21.  
  22. #define ODBaseLinkSource_MajorVersion 1
  23. #define ODBaseLinkSource_MinorVersion 0
  24.  
  25. /* C++ SOM defs */
  26. #include <somcls.xh>
  27. #include <somcm.xh>
  28.  
  29. /* C++ parent defs */
  30. #ifndef SOM_ODPersistentObject_xh
  31. #include <PstObj.xh>
  32. #endif
  33.  
  34. #ifndef ODBaseLinkSource_API
  35. #define ODBaseLinkSource_API
  36. /*
  37.  * -- The Class API
  38.  */
  39.  
  40. /*
  41.  * Start of user-defined types:
  42.  */
  43. class SOMClass;
  44. class SOMObject;
  45. class ODFrame;
  46. class ODFacet;
  47. class ODObject;
  48. class ODExtension;
  49. class ODRefCntObject;
  50. class ODPersistentObject;
  51. class ODStorageUnit;
  52. class ODBaseLinkSource;
  53. class ODPart;
  54. class ODPartList;
  55. class ODLink;
  56. class ODDraft;
  57.  
  58. /*
  59.  * End of user-defined types.
  60.  */
  61.  
  62. #ifdef OLDIBMSOMAPISUPPORT
  63. #define ODBaseLinkSourceCClassData ODBaseLinkSourceClassData
  64. #define ODBaseLinkSourceNewClass(major,minor) somNewVersionedClassReference(ODBaseLinkSource,major,minor)
  65. #endif
  66.  
  67. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  68. #define ODBaseLinkSourceMetaClass SOMClass
  69.  
  70. #if PRAGMA_ALIGN_SUPPORTED
  71. #  pragma options align=power
  72. #endif
  73.  
  74. /* The API to the ODBaseLinkSource class object, and the methods it introduces. */
  75. SOMEXTERN struct ODBaseLinkSourceClassDataStructure {
  76. #ifdef OLDIBMSOMAPISUPPORT
  77.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  78. #else
  79.     long zero;
  80. #endif
  81.     somStaticClassInfo *sci;
  82.     somDToken        instanceDataToken;
  83.     long reserved [3];
  84.     somMToken Lock;
  85.     somMToken Unlock;
  86.     somMToken Clear;
  87.     somMToken GetContentStorageUnit;
  88.     somMToken ContentUpdated;
  89.     somMToken GetUpdateID;
  90.     somMToken SetAutoUpdate;
  91.     somMToken IsAutoUpdate;
  92.     somMToken SetSourcePart;
  93.     somMToken GetChangeTime;
  94.     somMToken ShowLinkSourceInfo;
  95.     somMToken reserved1;
  96.     somMToken reserved2;
  97.     somMToken reserved3;
  98.     somMToken reserved4;
  99.     somMToken reserved5;
  100.     somMToken reserved6;
  101.     somMToken reserved7;
  102.     somMToken reserved8;
  103.     somMToken reserved9;
  104.     somMToken reserved10;
  105.     somMToken reserved11;
  106. } SOMDLINK ODBaseLinkSourceClassData;
  107.  
  108. #if PRAGMA_ALIGN_SUPPORTED
  109. #  pragma options align=reset
  110. #endif
  111.  
  112. #if !defined(ODBaseLinkSource_Class_Source) && !defined(SOM_Module_linksrcb_Source)
  113. #if PRAGMA_IMPORT_SUPPORTED
  114. #pragma import list ODBaseLinkSourceClassData
  115. #endif
  116. #endif
  117.  
  118.  
  119. /*
  120.  * -- Typedefs and inline method declarations for left path inherited methods
  121.  * -- are omitted because this compilation had -museinheritedmethods in effect
  122.  */
  123.  
  124.  
  125. /*
  126.  * -- Typedefs for ODBaseLinkSource Method Procedures
  127.  */
  128. SOMEXTERN {
  129. typedef ODBoolean   (* SOMLINK somTD_ODBaseLinkSource_Lock)(ODBaseLinkSource *somSelf, Environment *ev,
  130.         ODULong wait,
  131.         ODLinkKey* key);
  132. typedef void   (* SOMLINK somTD_ODBaseLinkSource_Unlock)(ODBaseLinkSource *somSelf, Environment *ev,
  133.         ODLinkKey key);
  134. typedef void   (* SOMLINK somTD_ODBaseLinkSource_Clear)(ODBaseLinkSource *somSelf, Environment *ev,
  135.         ODUpdateID id,
  136.         ODLinkKey key);
  137. typedef ODStorageUnit*   (* SOMLINK somTD_ODBaseLinkSource_GetContentStorageUnit)(ODBaseLinkSource *somSelf, Environment *ev,
  138.         ODLinkKey key);
  139. typedef void   (* SOMLINK somTD_ODBaseLinkSource_ContentUpdated)(ODBaseLinkSource *somSelf, Environment *ev,
  140.         ODUpdateID id,
  141.         ODLinkKey key);
  142. typedef ODBoolean   (* SOMLINK somTD_ODBaseLinkSource_ShowLinkSourceInfo)(ODBaseLinkSource *somSelf, Environment *ev,
  143.         ODFacet* facet,
  144.         ODUpdateID change,
  145.         ODBoolean changesAllowed,
  146.         ODLinkInfoResult* infoResult);
  147. typedef ODUpdateID   (* SOMLINK somTD_ODBaseLinkSource_GetUpdateID)(ODBaseLinkSource *somSelf, Environment *ev);
  148. typedef ODTime   (* SOMLINK somTD_ODBaseLinkSource_GetChangeTime)(ODBaseLinkSource *somSelf, Environment *ev);
  149. typedef ODBoolean   (* SOMLINK somTD_ODBaseLinkSource_IsAutoUpdate)(ODBaseLinkSource *somSelf, Environment *ev);
  150. typedef void   (* SOMLINK somTD_ODBaseLinkSource_SetAutoUpdate)(ODBaseLinkSource *somSelf, Environment *ev,
  151.         ODBoolean automatic);
  152. typedef void   (* SOMLINK somTD_ODBaseLinkSource_SetSourcePart)(ODBaseLinkSource *somSelf, Environment *ev,
  153.         ODStorageUnit* sourcePartSU);
  154. }
  155.  
  156. #endif /* ODBaseLinkSource_API */
  157.  
  158.  
  159. /*
  160.  * -- This emitter treats Method Tokens as Thunks by default.
  161.  * -- Use the sc modifier "nothunks" to change this default
  162.  */
  163. #undef somresolve_
  164. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  165.  
  166. /*
  167.  * -- The C++ Wrapper Class for ODBaseLinkSource
  168.  */
  169. class ODBaseLinkSource : public ODPersistentObject
  170. {
  171. public:
  172.  
  173. // ODBaseLinkSource::new registers use of the class object, and then uses somNew
  174. // to allocate memory and load the object method table pointer. 
  175. void *operator new(size_t size)
  176. {
  177.     SOM_IgnoreWarning(size);
  178.     // Allocate memory using the default allocator for ODBaseLinkSource, and
  179.     // clear mem & set method table pointer, call basic initialization
  180. #ifdef SOMCHKNULL
  181.     void * __somResult = (void *)
  182.       somNewObject(ODBaseLinkSource);
  183.     SOMCHKNULL(__somResult);
  184.     return __somResult;
  185. #else
  186.     return (void*) somNewObject(ODBaseLinkSource);
  187. #endif
  188. }
  189.  
  190. // ODBaseLinkSource::delete uses the default deallocator for the object's class.
  191. void operator delete(void * obj)
  192. {
  193.     if (obj) {
  194.         SOM_Resolve(obj,SOMObject,somFree)
  195.            ( (SOMObject*) obj );
  196.     }
  197. }
  198.  
  199. /* method: Lock */
  200. ODBoolean   Lock(Environment *ev,
  201.         ODULong wait,
  202.         ODLinkKey* key)
  203. {
  204.    #ifdef SOMCHKEXCEPT
  205.    ODBoolean __somResult = 
  206.       SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Lock)
  207.     (this,ev,wait,key);
  208.       SOMCHKEXCEPT;
  209.    return __somResult;
  210. #else
  211.    return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Lock)
  212.     (this,ev,wait,key);
  213. #endif
  214. }
  215.  
  216. /* method: Unlock */
  217. void   Unlock(Environment *ev,
  218.         ODLinkKey key)
  219. {
  220.    SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Unlock)
  221.     (this,ev,key);
  222. #ifdef SOMCHKEXCEPT
  223.       SOMCHKEXCEPT;
  224. #endif
  225. }
  226.  
  227. /* method: Clear */
  228. void   Clear(Environment *ev,
  229.         ODUpdateID id,
  230.         ODLinkKey key)
  231. {
  232.    SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,Clear)
  233.     (this,ev,id,key);
  234. #ifdef SOMCHKEXCEPT
  235.       SOMCHKEXCEPT;
  236. #endif
  237. }
  238.  
  239. /* method: GetContentStorageUnit */
  240. ODStorageUnit*   GetContentStorageUnit(Environment *ev,
  241.         ODLinkKey key)
  242. {
  243.    #ifdef SOMCHKEXCEPT
  244.    ODStorageUnit* __somResult = 
  245.       SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetContentStorageUnit)
  246.     (this,ev,key);
  247.       SOMCHKEXCEPT;
  248.    return __somResult;
  249. #else
  250.    return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetContentStorageUnit)
  251.     (this,ev,key);
  252. #endif
  253. }
  254.  
  255. /* method: ContentUpdated */
  256. void   ContentUpdated(Environment *ev,
  257.         ODUpdateID id,
  258.         ODLinkKey key)
  259. {
  260.    SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,ContentUpdated)
  261.     (this,ev,id,key);
  262. #ifdef SOMCHKEXCEPT
  263.       SOMCHKEXCEPT;
  264. #endif
  265. }
  266.  
  267. /* method: ShowLinkSourceInfo */
  268. ODBoolean   ShowLinkSourceInfo(Environment *ev,
  269.         ODFacet* facet,
  270.         ODUpdateID change,
  271.         ODBoolean changesAllowed,
  272.         ODLinkInfoResult* infoResult)
  273. {
  274.    #ifdef SOMCHKEXCEPT
  275.    ODBoolean __somResult = 
  276.       SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,ShowLinkSourceInfo)
  277.     (this,ev,facet,change,changesAllowed,infoResult);
  278.       SOMCHKEXCEPT;
  279.    return __somResult;
  280. #else
  281.    return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,ShowLinkSourceInfo)
  282.     (this,ev,facet,change,changesAllowed,infoResult);
  283. #endif
  284. }
  285.  
  286. /* method: GetUpdateID */
  287. ODUpdateID   GetUpdateID(Environment *ev)
  288. {
  289.    #ifdef SOMCHKEXCEPT
  290.    ODUpdateID __somResult = 
  291.       SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetUpdateID)
  292.     (this,ev);
  293.       SOMCHKEXCEPT;
  294.    return __somResult;
  295. #else
  296.    return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetUpdateID)
  297.     (this,ev);
  298. #endif
  299. }
  300.  
  301. /* method: GetChangeTime */
  302. ODTime   GetChangeTime(Environment *ev)
  303. {
  304.    #ifdef SOMCHKEXCEPT
  305.    ODTime __somResult = 
  306.       SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetChangeTime)
  307.     (this,ev);
  308.       SOMCHKEXCEPT;
  309.    return __somResult;
  310. #else
  311.    return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,GetChangeTime)
  312.     (this,ev);
  313. #endif
  314. }
  315.  
  316. /* method: IsAutoUpdate */
  317. ODBoolean   IsAutoUpdate(Environment *ev)
  318. {
  319.    #ifdef SOMCHKEXCEPT
  320.    ODBoolean __somResult = 
  321.       SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,IsAutoUpdate)
  322.     (this,ev);
  323.       SOMCHKEXCEPT;
  324.    return __somResult;
  325. #else
  326.    return SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,IsAutoUpdate)
  327.     (this,ev);
  328. #endif
  329. }
  330.  
  331. /* method: SetAutoUpdate */
  332. void   SetAutoUpdate(Environment *ev,
  333.         ODBoolean automatic)
  334. {
  335.    SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,SetAutoUpdate)
  336.     (this,ev,automatic);
  337. #ifdef SOMCHKEXCEPT
  338.       SOMCHKEXCEPT;
  339. #endif
  340. }
  341.  
  342. /* method: SetSourcePart */
  343. void   SetSourcePart(Environment *ev,
  344.         ODStorageUnit* sourcePartSU)
  345. {
  346.    SOM_ResolveD(this,ODBaseLinkSource,ODBaseLinkSource,SetSourcePart)
  347.     (this,ev,sourcePartSU);
  348. #ifdef SOMCHKEXCEPT
  349.       SOMCHKEXCEPT;
  350. #endif
  351. }
  352.  
  353. };   /* ODBaseLinkSource */
  354.  
  355.  
  356.  
  357. #endif       /* SOM_ODBaseLinkSource_xh */
  358.